const parse = require("../../../node_modules/mini-html-parser2");
import {getAgreement} from '../../../api'
Page({
  data: {
    nodes : ''
  },
  onLoad() {
    getAgreement().then(res =>{
      if(res){
        parse(res.content, (err, nodes) => {
          if (!err) {
            this.setData({
              nodes,
            })
          }
        })
      }
    })
  },
});
